﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//for TypeConverter
using System.ComponentModel;
using WodLib;

namespace WodLib.TypeConverters
{
    public class AttributeConverter : ExpandableObjectConverter
    {
        public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
        {
            if (sourceType == typeof(string))
            {
                return true;
            }
            return base.CanConvertFrom(context, sourceType);   
        }

        public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
        {
            if (value is string)
            {
                

                return null;
                

            }
            return base.ConvertFrom(context, culture, value);
        }

    }
}
